#include<reg52.h>
#include<intrins.h>
#define uint unsigned int
#define on  0
#define off 1

sbit fm = P2^3;


void delay(uint xms)
{
		uint i, j;
		for (i = xms; i > 0; i--)
				for (j = 122; j > 0; j--);
}

void main(void)
{
		P1 = 0xfe;
		while (1)
		{
				delay(500);
				P1 = _crol_(P1, 1);
				fm = on;
				delay(500);
				fm = off;
		}
}